﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MC.RideEvent.Mvc.Models.Entity
{
    public partial class Member
    {
        public string FullName()
        {
            var fullName = string.Format("{0} {1}", FirstName, Name);
            return fullName;
        }

        public string DriveLicenseDateString()
        {
            var date = DriveLicenceDate != null ? (Convert.ToDateTime(DriveLicenceDate)).ToString("dd MMM yyyy") : string.Empty;
            return date;
        }
    }
}